package cn.yunhe.entity.userentity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 李非凡
 * 用户基本信息实体类
 */
@Data
public class UserData implements Serializable {
    //账号外键
    private UserAccount userAccount;
    //昵称
    private String nickname;
    //性别
    private String sex;
    //电话
    private String tel;
    //地址
    private List<UserAddress> address;

    public UserData() {
    }

    public UserData(UserAccount userAccount) {
        this.userAccount = userAccount;
    }

    public UserData(UserAccount userAccount, String nickname, String sex, String tel, List<UserAddress> address) {
        this.userAccount = userAccount;
        this.nickname = nickname;
        this.sex = sex;
        this.tel = tel;
        this.address = address;
    }
}
